package _0925.poly;

public class Trangle extends Shape{
	private double bottom;
	private double height;
	
	public Trangle() {
		super();
	}
	public Trangle(double bottom, double height) {
		super();
		this.bottom = bottom;
		this.height = height;
	}
	public double getBottom() {
		return bottom;
	}
	public void setBottom(double bottom) {
		this.bottom = bottom;
	}
	public double getHeight() {
		return height;
	}
	public void setHeight(double height) {
		this.height = height;
	}
	@Override
	public double area() {
		return bottom * height/2;
	}
	@Override
	public double perimeter() {
		return Math.sqrt(bottom*bottom + height*height) + bottom + height;
	}
}
